package com.tobehonor.satokensample.mybatiscommon.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_dept")
public class SysDept implements Serializable {
    
    
    private static final long serialVersionUID = -1710961740274997905L;
    
    @TableId(value = "dept_id", type = IdType.ASSIGN_ID)
    private Long deptId;
    
    private Long parentId;
    
    private String deptName;
    
    private String deptCode;
    
    private String leader;
    
    private String phone;
    
    private String email;
    
    private Integer status;
    
    private Integer sort;
    
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
